import time
import threading  # 操作线程
def banzhuan(name):
    print(name + ": 开始搬砖~")
    print("搬砖ing......")
    time.sleep(3)
    print("结束搬砖~")
for i in range(3):  # 多线程搬砖  3s
    # 招工(创建线程)                          name =  "工人"
    t = threading.Thread(target=banzhuan, args=("工人",))
    t.start()  # 工人开始干活
# for i in range(3):  # 单线程  9s
#     banzhuan()











